//患者库api接口
import { get, post } from "@/utils/request";
import { httpHeader } from './tools/httpHeader'

// 获取患者列表
export function getAllPatient() {
  let url = httpHeader() + '/his/sad/patient/getAllPatient'
  return get(url,null)
}

// 模糊查询获取患者列表
export function selectpatientbynameAndphp(data) {
  let url = httpHeader() + '/his/sad/patient/selectpatientbynameAndphp'
  return get(url,data)
}

// 根据患者获取病例列表
export function getAllHistoryByPatientId(data) {
  let url = httpHeader() + '/his/sad/patient/getAllHistoryByPatientId'
  return get(url,data)
}

// 修改患者信息
export function updatePatientInfo(data) {
  let url = httpHeader() + '/his/sad/patient/updatePatientInfo'
  return post(url,data)
}
